<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<style>

</style>

<c:forEach var="artical" items="${articals}">
	<div class="weui-cells " style="margin-top:0px">
		 <div class="weui-cell weui-cell_access " >
		
			 <div class="weui-cell__bd detailKind">
			    <input type="hidden" class="id" value="${artical.id}" />
			 	<p>${artical.title}</p>
			 </div>
			 <div class="weui-cell__ft">
			 </div>
		 </div>
	 </div>
</c:forEach>

<%@ include file="/WEB-INF/views/shared/scripts/jquery.jsp"%>
<%@ include file="/WEB-INF/views/shared/scripts/jqweui.jsp"%>

<script type="text/javascript">
$(".detailKind").each(function(){
	$(this).on("click",function(){
		var id=$(this).children("input").eq(0).val();
		/* alert(id); */
	    window.location.href="<c:url value='/wechat/onlineSer/onlineSer/onlineQuestion?id="+id+"' />";  
	})
})
</script>
